package com.ledtechdesign.beans.api.xml;

import java.util.Date;

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;

import org.w3c.dom.Element;
import org.w3c.dom.NodeList;

import com.ledtechdesign.beans.api.ElementDelegate;
import com.ledtechdesign.beans.api.IMeetingInfo;

public class MeetingInfoXML extends ElementDelegate<Element> implements
		IMeetingInfo {
	XPath xpath;
	public MeetingInfoXML(Element e) {
		super(e);
		xpath= XPathFactory.newInstance().newXPath();
	}

	public String getAccountId() {
		// TODO 
		return null;
	}

	public String getAccountIdent() {
		// TODO 
		return null;
	}

	public Date getCreated() {
		// TODO 
		return null;
	}

	public Date getEnded() {
		// TODO 
		return null;
	}

	public Date getExpired() {
		// TODO 
		return null;
	}

	public String getFms() {
		// TODO 
		return null;
	}

	public String getHost() {
		// TODO 
		return null;
	}

	public String getName() {
		String name=null;
		try {
			name = (String) xpath.evaluate("/result/meeting-info/name",
					this.e, XPathConstants.STRING);
		} catch (XPathExpressionException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return name;
	}

	public int getPeakUsers() {
		// TODO 
		return 0;
	}

	public String getSessionID() {
		// TODO 
		return null;
	}

	public Date getStarted() {
		// TODO 
		return null;
	}

	public long getTotalBytesDown() {
		// TODO 
		return 0;
	}

	public long getTotalBytesMessages() {
		// TODO 
		return 0;
	}

	public long getTotalBytesUp() {
		// TODO 
		return 0;
	}

	public int getUserCount() {
		// TODO 
		return 0;
	}

	public boolean isConnected() {
		// TODO 
		return false;
	}

}
